package lesson02;

import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;

/**
 * 功能描述
 *
 * @author wileda
 * @date 2023/02/13  9:29
 */
public class Demo03_FileReader {
    public static void main(String[] args) throws IOException {
        FileReader reader = new FileReader("d:/temp/test/test.txt");
        //循环读取
        while(true){
            int read = reader.read();
            if(read == -1){
                break;
            }
            System.out.println(read);
        }
        reader.close();
    }
}
